// ActionScript file
import web.login_user.loginuserlist;
import web.employee.employeelist;
import web.storage.storagelist;
import web.department.departmentlist;
import web.carinfo.carlist;
import flexmdi.containers.*;

//登录列表
private function openLogin():void
{
	var view:loginuserlist =new loginuserlist();
	var win:MDIWindow = new MDIWindow();
	win.percentWidth=100;
	win.percentHeight=100;
	win.title = "登录帐号";
	win.addChild(view);
	mdiCanvas.windowManager.add(win);
}


//部门列表
private function openDepartment():void
{
	var view:departmentlist =new departmentlist();
	var win:MDIWindow = new MDIWindow();
	win.percentWidth=100;
	win.percentHeight=100;
	win.maximize();
	win.title = "部门列表";
	win.addChild(view);
	mdiCanvas.windowManager.add(win);
}


//员工列表
private function openEmployee():void
{
	var view:employeelist =new employeelist();
	var win:MDIWindow = new MDIWindow();
	win.percentWidth=100;
	win.percentHeight=100;
	win.title = "员工列表";
	win.addChild(view);
	mdiCanvas.windowManager.add(win);
}

//仓库列表
private function openStorage():void
{
	var view:storagelist =new storagelist();
	var win:MDIWindow = new MDIWindow();
	win.percentWidth=100;
	win.percentHeight=100;
	win.title = "仓库列表";
	win.addChild(view);
	mdiCanvas.windowManager.add(win);
}

//车辆列表
private function openCar():void
{
	var view:carlist =new carlist();
	var win:MDIWindow = new MDIWindow();
	win.percentWidth=100;
	win.percentHeight=100;
	win.title = "车辆信息";
	win.addChild(view);
	mdiCanvas.windowManager.add(win);
}